package cn.tedu.spring.security.service.impl;

import cn.tedu.spring.security.dao.UserDao;
import cn.tedu.spring.security.pojo.User;
import cn.tedu.spring.security.service.IUserService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired UserDao userDao;

    @Override public User getUserByUsername(String username) {
        User user=userDao.getUserByUsername(username);
        return user;
    }

    @Override public List<User> findAll() {
        List<User> users=userDao.findAll();
        return users;
    }
}
